<?php

// All error reporting on
error_reporting(E_ALL);

// define the site path and library path
define('sitebase', realpath(dirname(__FILE__)));
define('library', sitebase . '/library/');

// Include the init.php file
include library . 'includes/init.php';

// Load the router
$registry->router = new Router($registry);

// Set the path to the controller directory
$registry->router->setPath(library . 'controller');

// Set up the template
$registry->template = new Template($registry);

//Include the layout
include library . 'views/layout/layout.php';

?>